package com.tianji.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.api.dto.trade.OrderBasicDTO;
import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.domain.dto.LearningPlanDTO;
import com.tianji.learning.domain.po.LearningLesson;
import com.tianji.learning.domain.vo.LearningLessonVO;
import com.tianji.learning.domain.vo.LearningPlanPageVO;


import java.util.List;

/**
 * <p>
 * 学生课程表 服务类
 * </p>
 *
 * @author ming
 * @since 2025-04-17
 */
public interface ILearningLessonService extends IService<LearningLesson> {

    PageDTO<LearningLessonVO> queryMyLesson(PageQuery pageQuery);

    void addCourseToLesson(Long userId, List<Long> courseIds);

    LearningLessonVO queryLeastLearning();

    void deleteByCourseId(Long userId,Long courseId);

    Long validCourseById(Long courseId);

    LearningLessonVO getLessonByCourseId(Long courseId);

    void updateLearningPlan(LearningPlanDTO learningPlanDTO);
    LearningLesson getLessonByUserIdAndCourseId(Long userId,Long courseId);


    LearningPlanPageVO queryLearningPlan(PageQuery pageQuery);

}
